<style>
    .fly-home {
        background: url("{$LoginUser['cover'] ? $LoginUser['cover'] : '/static/home/res/images/back.jpg'}") no-repeat left top;
        background-size: cover;
    }
</style>
<div class="fly-home fly-panel">
    <img src="{$Think.cookie.LoginUser['avatar'] ? $Think.cookie.LoginUser['avatar'] : '/static/home/res/images/avatar.jpg'}"
        alt="">
    {if condition="$LoginUser['auth'] ==1"}
    <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
    {/if}
    <h1>
        {$Think.cookie.LoginUser['nickname']}

        {if condition="$LoginUser.sex == 0"}
        <span>保密</span>
        {elseif condition="$LoginUser.sex == 1" /}
        <i class="iconfont icon-nan"></i>
        {elseif condition="$LoginUser.sex == 2" /}
        <i class="iconfont icon-nv"></i>
        {/if}

        <i class="layui-badge fly-badge-vip">VIP{$Think.cookie.LoginUser['vip']}</i>

        <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
    </h1>

    {if condition="$LoginUser['auth'] == 1"}
    <p style="padding: 10px 0; color: #5FB878;">认证信息:{$Think.cookie.LoginUser['nickname']}</p>
    {else /}
    <p style="padding: 10px 0; color: red;">认证信息: 未认证</p>
    {/if}

    <p class="fly-home-info">
        <i class="iconfont icon-kiss" title="积分"></i><span style="color: #FF7200;">积分: {$LoginUser.point}</span>
        <i class="iconfont icon-shijian"></i><span>{$LoginUser.createtime} 加入</span>

        {if condition="$LoginUser.province"}
        <i class="iconfont icon-chengshi"></i>
        <span>来自
            {$LoginUser.provinces.name}
            {if condition="$LoginUser.city"}
            {$LoginUser.citys.name}
            {/if}
        </span>
        {else /}
        <i class="iconfont icon-chengshi"></i><span>未填写</span>
        {/if}
    </p>

    {if condition="$LoginUser.content"}
    <p class="fly-home-sign">{$LoginUser.content}</p>
    {else /}
    <p class="fly-home-sign">这个人很懒,什么都没留下</p>
    {/if}

</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title"> {$Think.cookie.LoginUser['nickname']} 最近的提问</h3>
                <ul class="jie-row">
                    <li>
                        <span class="fly-jing">精</span>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>刚刚</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>2017-10-30</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <li>
                        <a href="" class="jie-title"> 基于 layui 的极简社区页面模版</a>
                        <i>1天前</i>
                        <em class="layui-hide-xs">1136阅/27答</em>
                    </li>
                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
                </ul>
            </div>
        </div>

        <div class="layui-col-md6 fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$Think.cookie.LoginUser['nickname']} 最近的回答</h3>
                <ul class="home-jieda">
                    <li>
                        <p>
                            <span>1分钟前</span>
                            在<a href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            尝试给layer.photos加上这个属性试试：
                            <pre>
full: true         
</pre>
                            文档没有提及
                        </div>
                    </li>
                    <li>
                        <p>
                            <span>5分钟前</span>
                            在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            Fly社区采用的是NodeJS。分享出来的只是前端模版
                        </div>
                    </li>

                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
                </ul>
            </div>
        </div>
    </div>
</div>

<script src="../../res/layui/layui.js"></script>
<script>
    layui.cache.page = 'user';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '../../res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "3.0.0"
        , base: '../../res/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

</body>

</html>